export const clientData = [
    {
        mac: 'C0:33:5E:11:86:E9',
        id: '2001',
        role: 'HPN-BYOD-AUTH',
        name: '-',
        last_device: 'SLR01HPEAP3001',
        last_username: '1045127452',
        last_associated_time: '18/3/15 上午9:32',
        first_seen: '',
        last_seen: '',
        device_type: 'OS X',
        OS: '',
        OS_detail: '',
        manufacturer: '',
        model: '',
        serial: '',
        phone_num: '',
        network_interface_vender: 'Apple, Inc.',
        connection_mode: '802.11ac',
        network_chipset: '-',
        network_driver: '-',
        EAP_supplicant: '-',
        asset_ID: '-',
        asset_group: '-',
        asset_category: '-',
        service_start: '-',
        service_end: '-',
        channel_width_capability: 'VHT 40MHz',
        spatial_streams_capability: 2,
        dot11_capability: '802.11r',
        AOS_device_type: 'iPad',
        Aruba_HTTP_fingerprint: '-',
        classification: 'Unclassified',
        watched_client: 'No',
        radios: [
            { device: 'SLR01HPEAP1036', radio: '802.11ac', SNR: 22, client: 2, usage: '0.00 Kbps', uptime: '', recently_associated: 'No' },
            { device: 'SLR01-OUT-b4:5d:50:c5:a0:3c', radio: '802.11ac', SNR: 22, client: 1, usage: '0.00 Kbps', uptime: '', recently_associated: 'No' },
        ],
        history: [
            { username: '1495182872', device: 'SLR01HPEAP1025', SSID: 'ARUBA-VISITOR', association_type: 'WPA2 (EAP-TLS)', associated_time: '18/2/21 上午12:57', data_usage: '3.93GB', average_signal: 43, average_speed: '359 Mbps', role: 'ARUBA-VISITOR', unassociated_time: '18/3/11 下午2:52', associated_type: 'MAC (PAP)', connection_mode: '11ac 5GHz', connect_duration: '18天13小时7分钟47秒', source: 'AMON', average_IO: '70.1 Gbps' },
        ],
        web: [
            { website: 'www.baidu.com', IP: '103.235.46.40', request_num: 93, data_usage: '0.245GB', website_type: '搜索引擎' },
        ]
    }
];

export const clientColumns = [
    {
        'title': '用户名',
        'key': 'last_username',
    },
    {
        'title': '角色',
        'key': 'role',
    },
    {
        'title': 'MAC地址',
        'key': 'mac',
        render: (h, params) => {
            return h('a', { domProps: { href: `#/client-detail/${params.row.mac}` } }, params.row.mac);
        }
    },
    {
        'title': '关联时间',
        'key': 'last_associated_time',
        sortable: true
    },
    {
        'title': 'AP／设备',
        'key': 'last_device'
    }
];

export const radioColumns = [
    {
        'title': '设备',
        'key': 'device',
        render: (h, params) => {
            return h('a', { domProps: { href: `#/AP-detail/${params.row.device}` } }, params.row.device);
        }
    },
    {
        'title': 'radio',
        'key': 'radio',
    },
    {
        'title': 'SNR',
        'key': 'SNR',
        sortable: true
    },
    {
        'title': '终端数量',
        'key': 'client',
        sortable: true
    },
    {
        'title': '用量',
        'key': 'usage'
    },
    {
        'title': '运行时间',
        'key': 'uptime'
    },
    {
        'title': '最近是否有关联',
        'key': 'recently_associated'
    }
];

export const historyColumns = [
    {
        'title': '用户名',
        'key': 'username',
        fixed: 'left',
        width: 110,
    },
    {
        'title': '设备',
        'key': 'device',
        width: 140,
        render: (h, params) => {
            return h('a', { domProps: { href: `#/AP-detail/${params.row.device}` } }, params.row.device);
        }
    },
    {
        'title': 'SSID',
        'key': 'SSID',
        width: 140,
    },
    {
        'title': '认证类型',
        'key': 'association_type',
        width: 160,
    },
    {
        'title': '连接模式',
        'key': 'connection_mode',
        width: 100,
    },
    {
        'title': '关联时间',
        'key': 'associated_time',
        width: 160,
    },
    {
        'title': '解除关联时间',
        'key': 'unassociated_time',
        width: 160,
    },
    {
        'title': '关联持续',
        'key': 'connect_duration',
        width: 160,
    },
    {
        'title': '使用流量',
        'key': 'data_usage',
        width: 120,
        'sortable': true
    },
    {
        'title': '平均信号',
        'key': 'average_signal',
        width: 120,
        'sortable': true
    },
    {
        'title': '平均速度',
        'key': 'average_speed',
        width: 120,
        'sortable': true
    },
    {
        'title': '角色',
        'key': 'role',
        width: 140,
    },
    {
        'title': '来源',
        'key': 'source',
        width: 120,
    },
    {
        'title': '平均吞吐量',
        'key': 'average_IO',
        width: 120,
        'sortable': true
    }
];

export const webColumns = [
    {
        'title': '网站名',
        'key': 'website',
    },
    {
        'title': 'IP',
        'key': 'IP',
    },
    {
        'title': '连接次数',
        'key': 'request_num',
        'sortable': true
    },
    {
        'title': '使用数据流量',
        'key': 'data_usage',
        'sortable': true
    },
    {
        'title': '应用类型',
        'key': 'website_type',
    }
];